package com.patterns.proxy.proxyPlayer;

/**
 * Created by Xiao Yiyun on 2017/4/22.
 * 一个游戏玩家的实现类
 */
class GamePlayer implements IGamePlayer {
    //游戏玩家的名字
    private String name = "";
    public GamePlayer(String name) {
        this.name = name;
    }

    public void login(String user, String pwd) {
        System.out.println("账号为"+user+"的玩家"+name+"登录成功");
    }

    public void killBoss() {
        System.out.println(this.name + "玩家正在杀怪!!!");
    }

    public void upGrade() {
        System.out.println(this.name + "玩家又升了一级！！！！！！！");
    }
}
